﻿using System;

namespace Warehouse.Silverlight.Core.Infrastructure.Events
{
    public class ResultsArgs : EventArgs
    {
        private readonly Exception _error;

        public ResultsArgs(Exception exception)
        {
            _error = exception;
        }

        public Exception Error
        {
            get { return _error; }
        }

        public bool HasError
        {
            get { return _error != null; }
        }
    }
}
